import { createRouter,createWebHistory } from 'vue-router'

let router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'home',
            component: () => import('../views/PersonShow.vue'),
            meta: {
                title: '首页'
            }
        },
        {
            path: '/update',
            name: 'update',
            component: () => import('../views/PersonUpdate.vue'),
            meta: {
                title: '登录'
            }
        },
    ]    
})


export default router